#include <iostream>
using namespace std;
/**
 * 
 */
int main() {
  char c;
  cin >> c;
  int cc = c + 0;
  cout << cc << endl;
  return 0;
}